package cz.cvut.fit.web.nakupniSeznam.ws.conv;

import java.net.URI;
import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import cz.cvut.fit.web.nakupniSeznam.data.List;

@XmlRootElement(name = "root")
public class ListsConverter {

	public ListsConverter() {

	}

	public ListsConverter(java.util.List<List> input, URI uri) {
		super();
		lists = new ArrayList<ListConverter>();
		
		for (List l : input) {
			this.lists.add(new ListConverter(l, uri));
		}
	}

	private java.util.List<ListConverter> lists;

	@XmlElement(name = "list")
	@XmlElementWrapper
	public java.util.List<ListConverter> getLists() { 
		return lists;
	}

}
